package com.netease.pris.protocol;

import com.netease.f.b;
import com.netease.f.k;
import java.util.Map;
import java.util.Stack;
import org.xml.sax.Attributes;

public class h extends k
{
  static final String a = "PRISOPDSReader";
  protected StringBuffer b = new StringBuffer();
  protected g c;
  private Stack d = new Stack();
  private Map e;

  public h(g paramg)
  {
    this.c = paramg;
  }

  private boolean a(String paramString1, String paramString2, Attributes paramAttributes, String paramString3)
  {
    if (!this.d.isEmpty());
    for (b localb1 = (b)this.d.peek(); ; localb1 = null)
    {
      if ((localb1 != null) && (paramString3 != null) && (paramString3.length() > 0))
        localb1.a(null, paramString3);
      b localb2 = this.c.a(localb1, paramString2, this.d.size());
      if (localb2 != null)
        localb2.a(paramAttributes, this.e);
      if (this.d.isEmpty());
      for (boolean bool = this.c.a(localb2); ; bool = this.c.a(localb1, localb2, this.d.size()))
      {
        this.d.push(localb2);
        return bool;
      }
    }
  }

  private final String c()
  {
    char[] arrayOfChar = this.b.toString().trim().toCharArray();
    this.b.delete(0, this.b.length());
    if (arrayOfChar.length == 0);
    for (String str = null; ; str = new String(arrayOfChar))
      return str;
  }

  public void a(Map paramMap)
  {
    this.e = paramMap;
  }

  public void a(char[] paramArrayOfChar, int paramInt1, int paramInt2)
  {
    this.b.append(paramArrayOfChar, paramInt1, paramInt2);
  }

  public boolean a(String paramString1, String paramString2, String paramString3)
  {
    return b(paramString2, paramString3, c());
  }

  public boolean a(String paramString1, String paramString2, String paramString3, Attributes paramAttributes)
  {
    if ((paramString2 != null) && (paramString2.length() > 0))
      paramString3 = paramString2 + ':' + paramString3;
    return a(paramString2, paramString3, paramAttributes, c());
  }

  public boolean b(String paramString1, String paramString2, String paramString3)
  {
    b localb = (b)this.d.pop();
    if (localb != null)
    {
      if ((paramString3 != null) && (paramString3.length() > 0))
        localb.g(paramString3);
      localb.r();
    }
    if (this.d.isEmpty())
      this.c.b(localb);
    for (boolean bool = false; ; bool = this.c.b((b)this.d.peek(), localb, this.d.size()))
      return bool;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.protocol.h
 * JD-Core Version:    0.6.0
 */